// 以前操作本地存储 都得写很长的单词 localStorage, 太麻烦了
// localStorage.setItem(键, 值) => setItem(值)
// localStorage.getItem(键) => getItem()
// localStorage.removeItem(键) => delItem()

// 按需导出多个方法使用
const KEY = 'my-token-vant-mobile'

// 获取token
export const getItem = () => {
  return localStorage.getItem(KEY)
}

// 设置token

export const setItem = (token) => {
  return localStorage.setItem(KEY, token)
}

// 删除token

export const delItem = () => {
  return localStorage.removeItem(KEY)
}
